package com.smile.config;

public class UserUtilsByLogin {

    public static InheritableThreadLocal<String> nameThreadLocal = new InheritableThreadLocal<>();
    public static InheritableThreadLocal<String> pwdThreadLocal = new InheritableThreadLocal<>();
    public static InheritableThreadLocal<String> loginTypeThreadLocal = new InheritableThreadLocal<>();

    public static void setName(String name) {
        nameThreadLocal.set(name);
    }

    public static String getName() {
        return nameThreadLocal.get();
    }

    public static void setPwd(String pwd) {
        pwdThreadLocal.set(pwd);
    }

    public static String getPwd() {
        return pwdThreadLocal.get();
    }

    public static void setLoginType(String loginType) {
        loginTypeThreadLocal.set(loginType);
    }

    public static String getLoginType() {
        return loginTypeThreadLocal.get();
    }


}
